package cn.pegasus.teamwork.sysconfig.mapper;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.iyizhan.teamwork.base.mapper.BaseMapper;
import cn.pegasus.teamwork.sysconfig.entity.SysConfigFiles;

/**
 * @author buyuer
 * @version 
 */
public interface SysConfigFilesMapper extends BaseMapper<SysConfigFiles>{
	
	/**
     * 
     * @author buyuer
     * @Title: queryFiles
     * @Description: 查询所有最新更新包
     * @param appId 所授项目
     * @param fileType  文件类型 1 更新文件  2 安装文件
     */
    List<Map<String, Object>> queryFiles(@Param("md5") List<String> md5,@Param("appId") Integer appId,@Param("fileType") Integer fileType);
    
    Map<String, String> queryLastAppVersion(@Param("appPackageName") String appPackageName,@Param("appVersion") String appVersion,@Param("appType") Integer appType,@Param("appVersionCode") String appVersionCode);

	SysConfigFiles getLastAppVersion(String string, Integer valueOf);
	
	/**
	 * 查询最新版本前5个
	 * @param map
	 * @return
	 */
	List<SysConfigFiles> getNewVersion(Map<String,Object> map);
    
    //Map<String, String> queryLastIOSAppVersion(@Param("appPackageName") String appPackageName,@Param("appVersion") String appVersion,@Param("appType") Integer appType,@Param("appVersionCode") String appVersionCode);
}